<?php if ($this->pageCount > 1): ?>
<?php if (empty($this->pageName)) $this->pageName = 'page' ?>
<ul class="paginator">
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
	<li class="previous">
		<a href="<?php echo $this->url(array($this->pageName => $this->previous)); ?>">Poprzedni</a>
	</li>
<?php else: ?>
	<li class="previous">
		Poprzedni
	</li>
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
	<li>
		<a href="<?php echo $this->url(array($this->pageName => $page)); ?>"><?php echo $page; ?></a>
	</li>
<?php else: ?>
	<li class="selected">
		<em><?php echo $page; ?></em>
	</li>
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
	<li class="next">
		<a href="<?php echo $this->url(array($this->pageName => $this->next)); ?>">Następny</a>
	</li>
<?php else: ?>
	<li class="next">
		Następny
	</li>
<?php endif; ?>
</ul>
<?php endif; ?>